#ifndef __CANVAS_TOOL_H__
#define __CANVAS_TOOL_H__

#include "stdbool.h"
#include "stdio.h"
#include <stdio.h>
#include <stdint.h>
#include <unistd.h>
#include <dirent.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <stdlib.h>

#define WHITE 0xFFFFFF
#define BLACK 0x000000
#define RED 0xFF0000
#define GREEN 0x00FF00
#define BLUE 0x0000FF
#define YELLOW (RED | GREEN)

#define BLACK_EPAPER 0x00
#define WHITE_EPAPER 0x01
#define YELLOW_EPAPER 0x02
#define RED_EPAPER 0x03
#define BLUE_EPAPER 0x05
#define GREEN_EPAPER 0x06

#ifdef __cplusplus
extern "C" {
#endif

__attribute__((visibility("default")))
int cover_to_epaper(const uint32_t *image, int width, int height, int display_type, const char *path);

#ifdef __cplusplus
}
#endif

#endif